#include <iostream>
#include <unistd.h>
#include "processBar.h"

void download()
{
	int total=1024;
	int cur=0;
	while(cur<=total)
	{
		int rate=cur*100/total;
		processBar(rate);
		cur+=10;
		usleep(50000);
	}
	processBar(100);
	printf("\n");
}

int main()
{
	download();

	return 0;	
}
